	
	<?php $i = 1; ?>
	<?php foreach($slider as $slider):?>
<?php $item_class = ($i == 1) ? 'item active' : 'item'; ?>
    <div class="<?php echo $item_class; ?>">
        <img src="<?= base_url();?>assets/images/banner/<?= $slider->file;?>" alt="<?= $slider->title; ?>" />
     </div>
<?php $i++; ?>
<?php endforeach; ?>
			
	
    